<?php
/**
 * Created by PhpStorm.
 * User: tony
 * Date: 2018/6/4
 * Time: 11:20
 */

namespace app\modules\v1\controllers;

use app\models\Branch;
use app\models\Task;
use app\modules\v1\controllers\parent\ParentController;

class BranchController extends ParentController
{
    public function actionIndex(){
        $res = Branch::find()->asArray()->with('department')->all();
        return $res;
    }
}